﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

using EHTWebsite.Code;
/// <summary>
/// Author toanvt
/// CreatedDate 10/12/2011
/// </summary>
public partial class Administrator_AdminDichVu : System.Web.UI.Page
{

    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            ThongTinCongTy theThongTinCongTy = ThongTinCongTyProvider.GetThongTinCongTy();

            if (theThongTinCongTy != null)
            {
                this.fckDichVuOther.Value = theThongTinCongTy.DichVuOther;
                this.fckDichVuVN.Value = theThongTinCongTy.DichVuVN;
                this.fckDichVuTomTatOther.Value = theThongTinCongTy.DichVuTomTatOther;
                this.fckDichVuTomTatVN.Value = theThongTinCongTy.DichVuTomTatVN;
            }
        }
    }

    protected void btnSave_Click(object sender, EventArgs e)
    {
        String dichVuVN = this.fckDichVuVN.Value;
        String dichVuOther = this.fckDichVuOther.Value;
        String dichVuTomTatVN = this.fckDichVuTomTatVN.Value;
        String dichVuTomTatOther = this.fckDichVuTomTatOther.Value;

        ThongTinCongTyProvider.UpdateDichVu(dichVuVN, dichVuOther, dichVuTomTatVN, dichVuTomTatOther);
        ltrMessage.Text = "Cập nhật thành công";
    }

}